<!--{eval $needhiddenreply = ($hiddenreplies && $_G['uid'] != $post['authorid'] && $_G['uid'] != $_G['forum_thread']['authorid'] && !$post['first'] && !$_G['forum']['ismoderator']);}-->
<!--{block authorverifys}-->
<!--{if $_G['setting']['verify']['enabled']}-->
	<!--{loop $_G['setting']['verify'] $vid $verify}-->
		<!--{if $verify['available'] && $post['verify'.$vid] == 1}-->
			<a href="home.php?mod=spacecp&ac=profile&op=verify&vid=$vid" target="_blank"><!--{if $verify[icon]}--><img src="$verify[icon]" class="vm" alt="$verify[title]" title="$verify[title]" /><!--{else}-->$verify[title]<!--{/if}--></a>&nbsp;
		<!--{/if}-->
	<!--{/loop}-->
<!--{/if}-->
<!--{/block}-->
<!--{if $post['first'] &&  $_G['forum_threadstamp']}-->
	<div id="threadstamp"><img src="{STATICURL}image/stamp/$_G[forum_threadstamp][url]" title="$_G[forum_threadstamp][text]" /></div>
<!--{/if}-->
<div id="pid$post[pid]" summary="pid$post[pid]">
    <div class="cl">
        <div class="pls y">
    	<!--{if $post['first']}-->
		$post[newpostanchor] $post[lastpostanchor]
		<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
			<!--{if $_G['setting']['authoronleft']}-->
				<div class="pi">
					<div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post[author]</a>$authorverifys</div>
				</div>
			<!--{/if}-->
			<div class="p_pop blk bui" id="userinfo$post[pid]" style="display: none; {if $_G['setting']['authoronleft']}margin-top: -11px;{/if}">
				<div class="m z">
					<div id="userinfo$post[pid]_ma"></div>
					<!--{hook/viewthread_profileside $postcount}-->
				</div>
				<div class="i y">
					<div>
						<strong><a href="home.php?mod=space&uid=$post[authorid]" target="_blank" class="xi2">$post[author]</a></strong>
						<!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
							<!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
								<em>{lang online}</em>
							<!--{else}-->
								<em>{lang offline}</em>
							<!--{/if}-->
						<!--{/if}-->
					</div>
					<dl class="cl plsdl">{$post[custominfo][menu]}</dl>
					<div class="imicn">
						<!--{if $post['qq'] && !$post['privacy']['profile']['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G['setting']['bbname']&Menu=yes" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}-->
						<!--{if $post['icq'] && !$post['privacy']['profile']['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}-->
						<!--{if $post['yahoo'] && !$post['privacy']['profile']['yahoo']}--><a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!"  /></a><!--{/if}-->
						<!--{if $post['taobao'] && !$post['privacy']['profile']['taobao']}--><a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&site=cntaobao&s=2&charset=utf-8')" title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a><!--{/if}-->
						<!--{if $post['site'] && !$post['privacy']['profile']['site']}--><a href="$post[site]" target="_blank" title="{lang member_homepage}"><img src="{IMGDIR}/forumlink.gif" alt="{lang member_homepage}" /></a><!--{/if}-->
						<a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"><img src="{IMGDIR}/userinfo.gif" alt="{lang member_viewpro}" /></a>
						<!--{hook/viewthread_imicons $postcount}-->
						<!--{if $_G['setting']['magicstatus']}-->
							<!--{if !empty($_G['setting']['magics']['showip'])}-->
								<a href="home.php?mod=magic&mid=showip&idtype=user&id={echo rawurlencode($post[author])}" id="a_showip_li_{$post[pid]}" class="xi2" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}/image/magic/showip.small.gif" alt="" /> $_G['setting']['magics']['showip']</a>
							<!--{/if}-->
							<!--{if !empty($_G['setting']['magics']['checkonline']) && $post['authorid'] != $_G['uid']}-->
								<a href="home.php?mod=magic&mid=checkonline&idtype=user&id={echo rawurlencode($post[author])}" id="a_repent_$post[pid]" class="xi2" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}/image/magic/checkonline.small.gif" alt="" /> $_G['setting']['magics']['checkonline']</a>
							<!--{/if}-->
							<!--{hook/viewthread_magic_user $postcount}-->
						<!--{/if}-->
					</div>
					<div id="avatarfeed"><span id="threadsortswait"></span></div>
				</div>
			</div>
		<!--{/if}-->
		<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
			<div class="main-box-avatar cl">
			<!--{if $_G['setting']['bannedmessages'] & 2 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->
				<div class="avatar">{lang member_avatar_banned}</div>
			<!--{elseif $post['avatar'] && $showavatars}-->
				<div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
			<!--{/if}-->
			<!--{hook/viewthread_avatar $postcount}-->
			<!--{if $post[groupicon]}--><p>$post[groupicon]</p><!--{/if}-->
			<p class="woo-tv"><em><a href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]" target="_blank">{$post[authortitle]}</a></em></p>
			<!--{if $post['customstatus']}--><p class="xg1">$post[customstatus]</p><!--{/if}-->
			<p class="woo-tv" {if $post['upgradecredit'] !== false} id="g_up$post[pid]" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12!'});"{/if}>
            	<!--{eval showstars($post['stars']);}-->
            </p>
			</div>
			<!--{if $post['upgradecredit'] !== false}-->
				<div id="g_up$post[pid]_menu" class="tip tip_4" style="display: none;">
					<div class="tip_horn"></div>
					<div class="tip_c">$post['authortitle'], {lang credits} $post['credits'], {lang thread_groupupgrade} $post['upgradecredit'] {lang credits}</div>
				</div>
			<!--{/if}-->
			<!--{hook/viewthread_sidetop $postcount}-->
			<!--{if $post[custominfo][left]}--><dl class="pil cl plsdl">{$post[custominfo][left]}</dl><!--{/if}-->
			<!--{if $post['medals']}-->
				<p class="md_ctrl">
					<a href="home.php?mod=medal">
						<!--{loop $post['medals'] $medal}-->
						<img id="md_{$post[pid]}_{$medal[medalid]}" src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title="" onmouseover="showMenu({'ctrlid':this.id, 'menuid':'md_$medal[medalid]_menu', 'pos':'12!'});" />
						<!--{/loop}-->
					</a>
				</p>
			<!--{/if}-->
			<!--{if $post[authorid] != $_G[uid]}-->
				<ul class="xl xl2 o cl">
					<li class="callon"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank" title="{lang viewthread_left_tospace}" class="xi2">{lang viewthread_left_tospace}</a></li>
					<li class="buddy"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_{$post[authorid]}" id="a_friend_li_{$post[pid]}" onclick="showWindow(this.id, this.href, 'get', 1, {'ctrlid':this.id,'pos':'00'});" title="{lang viewthread_left_addfriend}" class="xi2">{lang viewthread_left_addfriend}</a></li>
					<li class="poke2"><a href="home.php?mod=spacecp&ac=poke&op=send&uid=$post[authorid]" id="a_poke_li_{$post[pid]}" onclick="showWindow(this.id, this.href, 'get', 0);" title="{lang viewthread_left_poke}" class="xi2">{lang viewthread_left_poke}</a></li>
					<li class="pm2"><a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]&tid=$post[tid]" onclick="showWindow('sendpm', this.href);" title="{lang viewthread_left_sendpm}" class="xi2">{lang viewthread_left_sendpm}</a></li>
				</ul>
			<!--{/if}-->
			<!--{hook/viewthread_sidebottom $postcount}-->
		<!--{else}-->
			<div class="pi">
            <a href="javascript:;"><em>$post[useip]</em></a>
			<!--{if !$post['authorid']}-->
				<a href="javascript:;">$_G[setting][anonymoustext] <em>$post[useip]</em></a>
			<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
				<!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$_G[setting][anonymoustext]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
			<!--{else}-->
				$post[author] <em>{lang member_deleted}</em>
			<!--{/if}-->
			</div>
		<!--{/if}-->
		<!--{if $_G['group']['allowedituser'] || $_G['group']['allowbanuser'] || ($_G['forum']['ismoderator'] && $_G['group']['allowviewip'])}-->
			<p>
				<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->
					<a href="forum.php?mod=topicadmin&action=getip&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if $_G['forum_auditstatuson']}&modthreadkey=$_G[gp_modthreadkey]{/if}" onclick="ajaxmenu(this, 0, 0, 2);doane(event)">IP</a>&nbsp;
				<!--{/if}-->
				<!--{if $_G['group']['allowedituser']}-->
					<a href="{if $_G['adminid'] == 1}admin.php?frames=yes&action=members&operation=search&uid=$post[authorid]&submit=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit}</a>&nbsp;
				<!--{/if}-->
				<!--{if $_G['group']['allowbanuser']}-->
					<!--{if $_G['adminid'] == 1}-->
						<a href="admin.php?action=members&operation=ban&username=$post[usernameenc]&frames=yes" target="_blank">{lang ban_member}</a>&nbsp;
					<!--{else}-->
						<a href="forum.php?mod=modcp&action=member&op=ban&uid=$post[authorid]" target="_blank">{lang ban_member}</a>&nbsp;
					<!--{/if}-->
				<!--{/if}-->
				<a href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$post[usernameenc]" target="_blank">{lang posts}</a>
			</p>
		<!--{/if}-->
        <!--{/if}-->
        <hr style="border:0px; border-bottom:1px dashed grey; clear:both; display:none;" />
	</div>
	<div class="notpad">
        <div class="box-box-content-ct">
            <div class="pi tgao-head">
            
            
                <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
                <div class="main-box-avatar z">
                        <!--{if $_G['setting']['bannedmessages'] & 2 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->
                        <div class="avatar">{lang member_avatar_banned}</div>
                        <!--{elseif $post['avatar'] && $showavatars}-->
                        <div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')">
                            <a href="home.php?mod=space&uid=$post[authorid]" target="_blank" c="1">$post[avatar]</a>
                        </div>
                        <!--{/if}-->
                </div><!--main-box-avatar-->
                <!--{/if}-->
                <!--{if !IS_ROBOT}-->
                    <!--{if !$postcount && !$_G['forum_thread']['archiveid'] && $post['first'] }-->
                        <div id="fj" class="y none-box">
                            <label class="z">{lang thread_redirect_postno}</label>
                            <input type="text" class="px p_fre z" size="2" onkeyup="$('fj_btn').href='forum.php?mod=redirect&ptid=$_G[tid]&authorid=$_G[gp_authorid]&postno='+this.value" onkeydown="if(event.keyCode==13) {window.location=$('fj_btn').href;return false;}" title="{lang thread_redirect_postno_tips}" />
                            <a href="javascript:;" id="fj_btn" class="z" title="{lang thread_redirect_postno_tips}"><img src="{IMGDIR}/fj_btn.png" alt="{lang thread_redirect_postno_tips}" class="vm" /></a>
                        </div>
                    <!--{/if}-->
                    <!--{if $post['warned']}-->
                        <a href="forum.php?mod=misc&action=viewwarning&tid=$_G[tid]&uid=$post[authorid]" title="{lang warn_get}" class="y" onclick="showWindow('viewwarning', this.href)"><img src="{IMGDIR}/warning.gif" alt="{lang warn_get}" /></a>
                    <!--{/if}-->
                    <strong class="none-box">
                        <a href="{if $post[first]}forum.php?mod=viewthread&tid=$_G[tid]$fromuid{else}forum.php?mod=redirect&goto=findpost&ptid=$_G[tid]&pid=$post[pid]$fromuid{/if}" title="{lang share_url_copy_comment}" id="postnum$post[pid]" onclick="setCopy(this.href, '{lang post_copied}');return false;"><em>Copy URL</em></a>
                    </strong>
                <!--{/if}-->
                <div class="pti z" style="width:70%;">
                    <div class="authi woo-pad">
                    <!--{if !$post['anonymous'] && $_G['cache']['groupicon'][$post['groupid']]}-->
                        <img class="vm z ma-img" id="authicon$post[pid]" src="$_G['cache']['groupicon'][$post['groupid']]" />
                    <!--{else}-->
                        <img class="vm z ma-img" id="authicon$post[pid]" src="$_G['cache']['groupicon'][0]" />
                    <!--{/if}-->
                    <!--{if $post['authorid'] && !$post['anonymous']}-->
                        <!--{if !$_G['setting']['authoronleft']}-->
                        <a href="home.php?mod=space&uid=$post[authorid]" target="_blank" class="xi2">$post[author]</a>$authorverifys
                        <!--{/if}-->
                        <em class="authi "><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" c="1" class="xw1">$post[author]</a>$authorverifys</em>
                        <em id="authorposton$post[pid]">{lang poston} $post[dateline]</em>
                        <!--{if $post['status'] & 8}-->
                        <span class="xg1">
                            <!--{if $_G['setting']['mobile']['mobilecomefrom']}-->
                            {$_G['setting']['mobile']['mobilecomefrom']}
                            <!--{else}-->
                            {lang from_mobile}
                            <!--{/if}-->
                        </span>
                        <!--{/if}-->
                        <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous'] || !$post['authorid'] && !$post['username']}-->
                        $_G[setting][anonymoustext]&nbsp;
                        <em id="authorposton$post[pid]" class="xg1_cl">{lang poston} $post[dateline]</em>
                        <!--{/if}-->
                    <span class="pipe">|</span><span class="xg1">{lang show}:</span> <span class="xi1 red_forum">$_G[forum_thread][views]</span><span class="pipe">|</span><span class="xg1">{lang reply}:</span> <span class="xi1 red_forum">$_G[forum_thread][replies]</span>
                    
                    <!--{if !IS_ROBOT && !$_G['forum_thread']['archiveid'] && $post['first'] }-->
                        <!--{if $thread['authorid'] == $_G['uid']}-->
                            <span class="pipe">|</span>
                            <!--{if $replynotice == 1}-->
                                <a id="replynotice" href="forum.php?mod=misc&action=replynotice&op=ignore&tid=$_G[tid]" status="1" onclick="ajaxmenu(this, 3000, 0, 0, '43', function () {replyNotice();});return false;">{lang ignore_replynotice}</a>
                            <!--{else}-->
                                <a id="replynotice" href="forum.php?mod=misc&action=replynotice&op=receive&tid=$_G[tid]" status="0" onclick="ajaxmenu(this, 3000, 0, 0, '43', function () {replyNotice();});return false;">{lang receive_replynotice}</a>
                            <!--{/if}-->
                        <!--{/if}-->
                    <!--{/if}-->
                    <!--{hook/viewthread_postheader $postcount}-->
                    </div>
                </div>
                <!--{if !IS_ROBOT}-->
                <div class="y cl" style="margin-top:12px;" >
                    <!--{if $post['invisible'] == 0}-->
                    <a href="forum.php?mod=viewthread&action=printable&tid=$_G[tid]" title="{lang thread_printable}" target="_blank">
                        <img src="{IMGDIR}/print.png" alt="{lang thread_printable}" class="vm" />
                    </a>
                    <!--{/if}-->
                    <a href="forum.php?mod=redirect&goto=nextoldset&tid=$_G[tid]" title="{lang last_thread}">
                        <img src="{IMGDIR}/thread-prev.png" alt="{lang last_thread}" class="vm" />
                    </a>
                    <a href="forum.php?mod=redirect&goto=nextnewset&tid=$_G[tid]" title="{lang next_thread}">
                        <img src="{IMGDIR}/thread-next.png" alt="{lang next_thread}" class="vm" />
                    </a>
                </div>
                <!--{/if}-->
                
            </div><!--tgao-head-->
    
            <!--{ad ad_a_pr/thread/a_pr/3/$postcount}-->
            
            <div class="plc ptm pbn">
                <h1 class="ts" style="padding-left:7px;">
                    <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
                        <!--{if !IS_ROBOT && ($_G['forum']['threadtypes']['listable'] || $_G['forum']['status'] == 3)}-->
                            <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$_G[forum_thread][typeid]">[{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]</a>
                        <!--{else}-->
                            [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}]
                        <!--{/if}-->
                    <!--{/if}-->
                    <!--{if $threadsorts && $_G['forum_thread']['sortid']}-->
                        <a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=sortid&sortid=$_G[forum_thread][sortid]">[{$_G['forum']['threadsorts']['types'][$_G['forum_thread']['sortid']]}]</a>
                    <!--{/if}-->
                    <a href="forum.php?mod=viewthread&tid=$_G[tid]" id="thread_subject">$_G[forum_thread][subject]</a>
                    <span class="xw0 xs1 xg1">
                    <!--{if $_G['forum_thread'][displayorder] == -2}-->({lang moderating})
                    <!--{elseif $_G['forum_thread'][displayorder] == -3}-->({lang have_ignored})
                    <!--{elseif $_G['forum_thread'][displayorder] == -4}-->({lang draft})
                    <!--{/if}-->
                    <!--{if $_G['forum_thread']['recommendlevel']}-->
                        &nbsp;<img src="{IMGDIR}/recommend_$_G['forum_thread']['recommendlevel'].gif" alt="" title="{lang thread_recommend} $_G['forum_thread'][recommends]" />
                    <!--{/if}-->
                    <!--{if $_G['forum_thread'][heatlevel]}-->
                        &nbsp;<img src="{IMGDIR}/hot_$_G['forum_thread'][heatlevel].gif" alt="" title="$_G['forum_thread'][heatlevel] {lang heats}" />
                    <!--{/if}-->
                    <!--{if $_G['forum_thread']['closed'] == 1}-->
                        &nbsp;<img src="{IMGDIR}/locked.gif" alt="{lang close}" title="{lang close}" class="vm" />
                    <!--{/if}-->
                    <a href="forum.php?mod=viewthread&tid=$_G[tid]$fromuid" onclick="return copyThreadUrl(this)" title="{lang share_url_copy_comment}">[{lang share_url_copy}]</a>
                    </span>
                    <!--{hook/viewthread_title_extra}-->
                </h1>
            </div>
            <div class="pct" style="padding:10px;">
                <!--{ad/thread/a_pt/2/$postcount}-->
                <!--{if !$_G['inajax']}-->
                    <!--{if empty($ad_a_pr_css)}-->
                        <style type="text/css">.pcb{margin-right:0}</style>
                        <!--{eval $ad_a_pr_css=1;}-->
                    <!--{/if}-->
                <!--{/if}-->
                <!--{subtemplate forum/viewthread_node_body}-->
            </div>
            
            <!--{if !empty($lastmod['modaction'])}-->
            <div class="modact">
                <a href="forum.php?mod=misc&action=viewthreadmod&tid=$_G[tid]" title="{lang thread_mod}" onclick="showWindow('viewthreadmod', this.href)">
                    <!--{if $lastmod['modactiontype'] == 'REB'}-->
                    {lang thread_mod_recommend_by}
                    <!--{else}-->
                    {lang thread_mod_by}
                    <!--{/if}-->
                </a>
            </div>
            <!--{/if}--> 
            <!--{if $post['first'] && ($post[tags] || $relatedkeywords)}-->
            <div class="ptg mbm">
                <!--{if $post[tags]}-->
                    <!--{eval $tagi = 0;}-->
                    <!--{loop $post[tags] $var}-->
                        <!--{if $tagi}-->, <!--{/if}--><a title="$var[1]" href="misc.php?mod=tag&id=$var[0]" target="_blank">$var[1]</a>
                        <!--{eval $tagi++;}-->
                    <!--{/loop}-->
                <!--{/if}-->
                <!--{if $relatedkeywords}--><span>$relatedkeywords</span><!--{/if}-->
            </div>
            <!--{/if}-->
        
            <!--{if $post['signature'] && ($_G['setting']['bannedmessages'] & 4 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))}-->
            <div class="sign">{lang member_signature_banned}</div>
            <!--{elseif $post['signature'] && !$post['anonymous'] && $showsignatures}-->
            <div class="sign">$post[signature]</div>
            <!--{/if}-->
            <!--{ad/thread/a_pb/1/$postcount}-->
            <div class="fb-like" data-href="{echo !empty($_G['setting']['domain']['app']['forum']) ? 'http://'.$_G['setting']['domain']['app']['forum'] . '/' : $_G[siteurl]}bai-viet/{echo locdau($_G[forum_thread][subject])}-{$_G[tid]}-1-1.html" data-send="true" data-width="700" data-show-faces="true"></div>
            <style type="text/css">
            	.fb-like{
					padding:5px !important;
				}
            </style>
        </div><!--box-box-content-ct-->
        <div class="box-box-content-ct2">
            <div class=" plm">
                <!--{if !IS_ROBOT && $post['first'] && !$_G['forum_thread']['archiveid']}-->
                
                <!--{if $post['invisible'] == 0}-->
                <div id="p_btn" class="mtw cl">
                    <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
                    <div class="tshare cl">
                        <strong>{lang viewthread_share_to}:</strong>
                        <!--{hook/viewthread_share_method}-->
                    </div>
                <!--{/if}-->
                <!--{if $_G['setting']['homestatus']}-->
                    <a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G[tid]" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
                <!--{/if}-->
                <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
                <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
                    <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
                    <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</span></i></a>
                <!--{/if}-->
                <!--{if $_G['group']['raterange'] && $post['authorid']}-->
                    <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
                <!--{/if}-->
                <!--{if $post['first'] && $_G[uid]}-->
                    <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
                <!--{/if}-->
                    <a href="javascript:void(0);" title="Chia sẻ lên Facebook" onclick="faceshare('facebook')" ><i><img src="{IMGDIR}/facebook.png" width="16px" alt="{lang rate}" />Facebook</i></a>
                    <a href="javascript:void(0);" title="Chia sẻ lên Zing Me" onclick="faceshare('zing')" ><i><img src="{IMGDIR}/zing_48.png" alt="{lang rate}" />Zing</i></a>
                    <g:plusone></g:plusone>
                <!--{hook/viewthread_useraction}-->
            </div>
            <!--{/if}-->
    
            <!--{/if}-->
            <!--{if $post['relateitem']}-->
                <div class="extra_thread">
                    <h2 class="mbn woo-lefside">{lang related_thread}</h2>
                    <dl class="bdl_fav mbm">
                        <!--{loop $post['relateitem'] $var}-->
                        <dd><a href="forum.php?mod=viewthread&tid=$var[tid]" title="$var[subject]" >$var[subject]</a></dd>
                        <!--{/loop}-->
                     </dl>
                </div>
            <!--{/if}-->
            <!--{if $listMoreThreads}-->
                <div class="extra_thread">
                    <h2 class="mbn woo-lefside">Bài viết mới cùng chuyên mục</h2>
                    <dl class="bdl_fav mbm">
                    <!--{loop $listMoreThreads $key $value}-->
                        <dd><a href="forum.php?mod=viewthread&tid={$value['tid']}">$value[subject]</a> <span class="xg1">(<!--{date($value['dateline'])}--> - Bởi: <a href="home.php?mod=space&username={$value['author']}"  c="1">{$value['author']}</a>)</span></dd>
                     <!--{/loop}-->
                    </dl>
                </div>
            <!--{/if}-->
            <!--{if $listMoreThreadsNew}-->
                <div class="extra_thread">
                    <h2 class="mbn woo-lefside">Bài viết mới đăng</h2>
                    <dl class="bdl_fav mbm">
                    <!--{loop $listMoreThreadsNew $key $value}-->
                        <dd><a href="forum.php?mod=viewthread&tid={$value['tid']}">$value[subject]</a> <span class="xg1">(<!--{date($value['dateline'])}--> - Bởi: <a href="home.php?mod=space&username={$value['author']}" c="1")>{$value['author']}</a>)</span></dd>
                     <!--{/loop}-->
                    </dl>
                </div>
            <!--{/if}-->
        </div>
        
        
            <!--if $_G['setting']['fastpost'] && ($allowpostreply || !$_G['uid']) && !$_G['forum_thread']['archiveid'] && ($_G['forum']['status'] != 3 || $_G['isgroupuser'])-->
            <!--{subtemplate forum/viewthread_fastpost}-->
            <!--/if-->
        
            <!--{if !$_G['forum_thread']['archiveid']}-->
            <div class="box_commnet_neww">
                <div class="po woo-bak0">
                    <div class="pob cl clearfix">
                        <em>
                            <!--{if (($_G['forum']['ismoderator'] && $_G['group']['alloweditpost'] && (!in_array($post['adminid'], array(1, 2, 3)) || $_G['adminid'] <= $post['adminid'])) || ($_G['forum']['alloweditpost'] && $_G['uid'] && $post['authorid'] == $_G['uid'] && !(!$alloweditpost_status && $edittimelimit && TIMESTAMP - $post['dbdateline'] > $edittimelimit)))}-->
                                <a class="editp" href="forum.php?mod=post&action=edit&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if !empty($_G[gp_modthreadkey])}&modthreadkey=$_G[gp_modthreadkey]{/if}&page=$page"><!--{if $_G['forum_thread']['special'] == 2 && !$post['message']}-->{lang post_add_aboutcounter}<!--{else}-->{lang edit}</a><!--{/if}-->
                            <!--{elseif $_G['uid'] && $post['authorid'] == $_G['uid']}-->
                                <a class="appendp" href="forum.php?mod=misc&action=postappend&tid=$post[tid]&pid=$post[pid]&extra=$_G[gp_extra]&page=$page" onClick="showWindow('postappend', this.href, 'get', 0)">{lang postappend}</a>
                            <!--{/if}-->
                            <!--{if $post['first'] && $post['invisible'] == -3}-->
                                <a class="psave" href="forum.php?mod=misc&action=pubsave&tid=$_G[tid]">{lang published}</a>
                            <!--{/if}-->
                            <!--{if $post['invisible'] == -2 && !$post['first']}-->
                                <span class="xg1">({lang moderate_need})</span>
                            <!--{/if}-->
                            <!--{if $post['first'] && $allowblockrecommend}--><a class="push" href="javascript:;" onclick="modaction('recommend', '$_G[forum_firstpid]', 'op=recommend&idtype={if $_G[forum_thread][isgroup]}gtid{else}tid{/if}&id=$_G[tid]&pid=$post[pid]', 'portal.php?mod=portalcp&ac=portalblock')">{lang modmenu_blockrecommend}</a><!--{/if}-->
                            <!--{if $ordertype != 1}-->
                                <a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]&ordertype=1">{lang post_descview}</a>
                            <!--{else}-->
                                <a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]&ordertype=2">{lang post_ascview}</a>
                            <!--{/if}-->
                            <!--{hook/viewthread_postfooter $postcount}-->
        
        
                            <!--{if $post['invisible'] == 0}-->
                                <!--{if $_G['setting']['magicstatus']}-->
                                    <a href="javascript:;" id="mgc_post_$post[pid]" onmouseover="showMenu(this.id)" class="showmenu">{lang thread_magic}</a>
                                <!--{/if}-->
        
                                <!--{if $_G['forum_thread']['special'] == 3 && ($_G['forum']['ismoderator'] && (!$_G['setting']['rewardexpiration'] || $_G['setting']['rewardexpiration'] > 0 && ($_G[timestamp] - $_G['forum_thread']['dateline']) / 86400 > $_G['setting']['rewardexpiration']) || $_G['forum_thread']['authorid'] == $_G['uid']) && $post['authorid'] != $_G['forum_thread']['authorid'] && $post['first'] == 0 && $_G['uid'] != $post['authorid'] && $_G['forum_thread']['price'] > 0}-->
                                    <a href="javascript:;" onclick="setanswer($post['pid'], '$_G[gp_from]')">{lang reward_set_bestanswer}</a>
                                <!--{/if}-->
        
                                <!--{if !$post['first'] && $_G['group']['raterange'] && $post['authorid']}-->
                                    <a href="javascript:;" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;">{lang rate}</a>
                                <!--{/if}-->
        
                                <!--{if $post['rate'] && $_G['forum']['ismoderator']}-->
                                    <a href="forum.php?mod=misc&action=removerate&tid=$_G[tid]&pid=$post[pid]&page=$page" onclick="showWindow('rate', this.href, 'get', -1)">{lang removerate}</a>
                                <!--{/if}-->
                                <!--{if $post['authorid'] != $_G['uid']}-->
                                    <a href="javascript:;" onclick="showWindow('miscreport$post[pid]', 'misc.php?mod=report&rtype=post&rid=$post[pid]&tid=$_G[tid]&fid=$_G[fid]', 'get', -1);return false;">{lang report}</a>
                                <!--{/if}-->
                            <!--{/if}-->
                        </em>
        
                        <!--{if $_G['setting']['magicstatus']}-->
                            <ul id="mgc_post_$post[pid]_menu" class="p_pop mgcmn add_cla_mark_a" style="display: none;">
                            <!--{if $post['first']}-->
                                <!--{if !empty($_G['setting']['magics']['bump'])}-->
                                    <li><a href="home.php?mod=magic&mid=bump&idtype=tid&id=$_G[tid]" id="a_bump" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['bump']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['stick'])}-->
                                    <li><a href="home.php?mod=magic&mid=stick&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/stick.small.gif" />$_G['setting']['magics']['stick']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['close'])}-->
                                    <li><a href="home.php?mod=magic&mid=close&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/close.small.gif" />$_G['setting']['magics']['close']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['open'])}-->
                                    <li><a href="home.php?mod=magic&mid=open&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/open.small.gif" />$_G['setting']['magics']['open']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['highlight'])}-->
                                    <li><a href="home.php?mod=magic&mid=highlight&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/highlight.small.gif" />$_G['setting']['magics']['highlight']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['sofa'])}-->
                                    <li><a href="home.php?mod=magic&mid=sofa&idtype=tid&id=$_G[tid]" id="a_stick" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/sofa.small.gif" />$_G['setting']['magics']['sofa']</a></li>
                                <!--{/if}-->
                                <!--{if !empty($_G['setting']['magics']['jack'])}-->
                                    <li><a href="home.php?mod=magic&mid=jack&idtype=tid&id=$_G[tid]" id="a_jack" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/jack.small.gif" />$_G['setting']['magics']['jack']</a></li>
                                <!--{/if}-->
                                <!--{hook/viewthread_magic_thread}-->
                            <!--{/if}-->
                            <!--{if !empty($_G['setting']['magics']['repent']) && $post['authorid'] == $_G['uid'] && !$rushreply}-->
                                <li><a href="home.php?mod=magic&mid=repent&idtype=pid&id=$post[pid]:$_G[tid]" id="a_repent_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/bump.small.gif" />$_G['setting']['magics']['repent']</a></li>
                            <!--{/if}-->
                            <!--{if !empty($_G['setting']['magics']['anonymouspost']) && $post['authorid'] == $_G['uid']}-->
                                <li><a href="home.php?mod=magic&mid=anonymouspost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_anonymouspost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/anonymouspost.small.gif" />$_G['setting']['magics']['anonymouspost']</a></li>
                            <!--{/if}-->
                            <!--{if !empty($_G['setting']['magics']['namepost'])}-->
                                <li><a href="home.php?mod=magic&mid=namepost&idtype=pid&id=$post[pid]:$_G[tid]" id="a_namepost_$post[pid]" onclick="showWindow(this.id, this.href)"><img src="{STATICURL}image/magic/namepost.small.gif" />$_G['setting']['magics']['namepost']</a></li>
                            <!--{/if}-->
                            <!--{hook/viewthread_magic_post $postcount}-->
                            </ul>
                            <script type="text/javascript" reload="1">checkmgcmn('post_$post[pid]')</script>
                        <!--{/if}-->
                    </div>
                </div>
            </div>
            <!--{/if}-->
            <div class="plc">
                <!--{if $post['first'] && $_G['forum_thread']['replies']}--><!--{ad/interthread/a_p}--><!--{/if}-->
                <!--{if $post['first'] && $_G[forum_thread][special] == 5 && $_G[forum_thread][displayorder] >= 0}-->
                    <ul class="ttp cl">
                        <li style="display:inline;margin-left:12px"><strong class="bw0 bg0_all">{lang debate_filter}: </strong></li>
                        <li{if !isset($_G['gp_stand'])} class="xw1 a"{/if}><a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]" hidefocus="true">{lang all}</a></li>
                        <li{if $_G['gp_stand'] == 1} class="xw1 a"{/if}><a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]&stand=1" hidefocus="true">{lang debate_square}</a></li>
                        <li{if $_G['gp_stand'] == 2} class="xw1 a"{/if}><a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]&stand=2" hidefocus="true">{lang debate_opponent}</a></li>
                        <li{if isset($_G['gp_stand']) && $_G['gp_stand'] == 0} class="xw1 a"{/if}><a href="forum.php?mod=viewthread&tid=$_G[tid]&extra=$_G[gp_extra]&stand=0" hidefocus="true">{lang debate_neutral}</a></li>
                    </ul>
                <!--{/if}-->
            </div>
        	<!--{if !empty($aimgs[$post[pid]])}-->
            <script type="text/javascript" reload="1">
                aimgcount[{$post[pid]}] = [<!--{echo dimplode($aimgs[$post[pid]]);}-->];
                attachimggroup($post['pid']);
                <!--{if empty($_G['setting']['lazyload'])}-->
                    <!--{if !$post['imagelistthumb']}-->
                        attachimgshow($post[pid]);
                    <!--{else}-->
                        attachimgshow($post[pid], 1);
                    <!--{/if}-->
                <!--{/if}-->
                <!--{if $post['imagelistthumb']}-->
                    attachimglstshow($post['pid'], <!--{echo intval($_G['setting']['lazyload'])}-->);
                <!--{/if}-->
            </script>
            <!--{/if}-->
        </div><!--box-box-content-ct2 -->
    <!--{hook/viewthread_endline $postcount}-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>